{dede:config.pagesize value="20"/}
<html>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>
<title>会员兑现现金管理</title>
<link href='../img/base.css' rel='stylesheet' type='text/css'>
<link href='img/base.css' rel='stylesheet' type='text/css'>
<script language="javascript" src="js/member.js"></script>
<style type="text/css">
.rb{ border-right:1px solid #666666 }
.tb{ border-top:1px solid #666666 }
</style>
<script type="text/javascript">
//获得选中文件的文件名
function GetCheckfolderItem()
{
	var allSel='';
	if(document.form2.deleteid.value) return document.form2.deleteid.value;
	for(i=0;i<document.form2.deleteid.length;i++)
	{
		if(document.form2.deleteid[i].checked)
		{
			if(allSel=='')
			allSel=document.form2.deleteid[i].value;
			else
			allSel=allSel+","+document.form2.deleteid[i].value;
		}
	}
	return allSel;
}

function DoSubmit()
{
	var selid = GetCheckfolderItem();
	if(selid=='') {
		alert("你没选中任何信息！");
		return false;
	}
	if(window.confirm("你确定要删除这些消息么？"))
	{
		location = "member_convert.php?dopost=del&ids="+selid;
	}
}


</script>
</head>
<body background='img/allbg.gif' leftmargin='8' topmargin='8'>

<form name="form2">
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#D1DDAA">
  <tr> 
  <td height="28" colspan="10" background="img/tbg.gif">
   <table width="99%" border="0" cellspacing="0" cellpadding="0">
     <tr>
       <td width="29%">&nbsp;<strong>会员积分兑换现金列表</strong></td>
       <td width="71%" align="right">
          <a href="member_convert.php">所有会员</a> |
          <a href="member_convert.php?check=0">未审核</a> |
          <a href="member_convert.php?check=1">已审核</a> &nbsp;
       </td>
     </tr>
  </table>
 </td>
</tr>
  <tr bgcolor="#FEFCEF" height="26" align="center"> 
    <td width="3%">选择</td>
    <td width="5%">id</td>
    <td width="8%">mid</td>
    <td width="16%">email/用户id</td>
    <td width="10%">花费积分</td>
    <td width="10%">兑换现金</td>
    <td width="8%">状态</td>
    <td width="10%">申请时间</td>
    <td width="10%">审核时间</td>
    <td>操作</td>
  </tr>
{dede:datalist} 
<tr height="26" align="center" bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='#EDF7D0';"
  	 onMouseOut="javascript:this.bgColor='#FFFFFF';"> 
  <td><input name="deleteid" type="checkbox" id="mid" value="{dede:field.id/}" class="np" /></td>
  <td>{dede:field.id/}</td>
  <td>{dede:field.mid/}</td>
  <td>
	<?php 
		$dsql = new dedesql();
		$user = $dsql->getOne("select * from ps_member where mid = {$fields['mid']}");
		echo $user['email'];
		echo "<br />真实姓名：";
		echo $user['userid'];
	?>
  </td>
  <td>
  	{dede:field.scores /}
  </td>
  <td>
  	{dede:field.rmb /}
  </td>
  <td>
  	<?php echo $fields['status'] == 1 ? "<font color='green'>已审核</font>" : "<font color='red'>未审核</font>"; ?>
  </td>
  <td>
  	{dede:field.apply_time function="date('Y-m-d H:i:s',@me)" /}
  </td>
  <td>
  	<?php echo !empty($fields['check_time']) ? date("Y-m-d H:i:s",$fields['check_time']) : ''; ?>
  </td>
  <td align="center">
    <a href="member_convert.php?dopost=view&id={dede:field.id/}">审核</a> | 
    <a href="member_convert.php?dopost=del&ids={dede:field.id/}">删除</a>
  </td>
</tr>
{/dede:datalist} 
<tr bgcolor="#FAFAF1"> 
 <td height="36" colspan="10">
	&nbsp;
	<a href="javascript:selAll()" class="coolbg">全选</a>
	<a href="javascript:noSelAll()" class="coolbg">取消</a>
	<a href="javascript:DoSubmit()" class="coolbg">&nbsp;删除&nbsp;</a>
</td>
</tr>
<tr bgcolor="#F1FDE3"> 
 <td height="36" colspan="10" align="center">
	{dede:pagelist listsize='6' /}
 </td>
</tr>
</table>
</form>



</body>
</html>